import request from '@/utils/request'
// 查询公告列表
export function getList(data) {
    return request({
      url: '/notice/selectPages',
      method: 'post',
      data: data
    })
  }
// 修改公告
export function update(data) {
    return request({
        url: '/notice/update',
        method: 'post',
        data: data
    })
}
// 新型
export function create(data) {
    return request({
        url: '/notice/create',
        method: 'post',
        data: data
    })
}
// 删除
export function deleteData(query) {
    return request({
      url: '/notice/delete',
      method: 'get',
      params: query
    })
  }
// 查询留言板列表
export function infoList(data) {
  return request({
    url: '/system/leavae/message/list',
    method: 'get',
    params: data
  })
}
export function delInfo(id) {
  return request({
    url: '/system/leavae/message/' + id,
    method: 'delete'
  })
}